package com.warmlight.voicepacket.common;

import android.os.Environment;

import com.warmlight.voicepacket.http.HttpConfig;

import java.io.File;

/**
 * Created by weiweijinpeng on 2018/6/25.
 */

public class Constants {

//    private static String SERVER = HttpConfig.isTest ? "api.test.wanpi.nuanguang.vip:8888/v1/" : "http://api.wanpi.nuanguang.vip/v1";
    private static String LOCAL_SREVICE = "https://service.maggie.vip";//接口地址https://test.maggie.vip/
    private static String bucketName = "maggie-test-bucket";

//    static {
//        if (BuildConfig.DEBUG){
//            //开发环境
////            SERVER="api.wanpi.nuanguang.vip/v1/";
//            SERVER="api.test.wanpi.nuanguang.vip:8888/v1/";
//
//        } else {
//            //生产环境
//            SERVER="api.wanpi.nuanguang.vip/v1/";
//        }
//    }


    /**"https://service.maggie.vip/static/invitation.html"+"?code="
     * ip
     */
//    private static final String PROTOCOL = "http";
//    public static final String BASE_URL = PROTOCOL + "://" + SERVER;
    public static final String BASE_URL = HttpConfig.SERVER + "/";

    private static final String UI_BASE_URL = BASE_URL + "/static/invitation.html";

    //分享
    public static final String SHARE_URL = UI_BASE_URL + "?code=";

    /**
     * 请求接口返回的正确code
     * */
    public static final int HTTP_RESULT_SUCCESS = 200;
    public static final int HTTP_RESULT_WX_SUCCESS = 17320;


    /**
     * 手机外部存储根路径
     */
    private static final String EXTERNAL_STORAGE = Environment
            .getExternalStorageDirectory() + File.separator;


    // 应用总文件夹
    public static final String FILE_KU_CALL = EXTERNAL_STORAGE + "playSkin";

    // 媒体文件夹
    public static final String CALL_MEDIA_FILE_PATH = FILE_KU_CALL + "/Choiceness";

    // 头像
    public static final String HEAD_PORTRAIT_FILE_PATH = FILE_KU_CALL + "/cache";

    // 求电
    public static final String SEEK_FILE_PATH = FILE_KU_CALL + "/seek";

    // 图片下载
    public static final String CALL_VIDEO_FILE_PATH = CALL_MEDIA_FILE_PATH + "/video";

    // 来电音频目录
    public static final String CALL_AUDIO_FILE_PATH = CALL_MEDIA_FILE_PATH + "/audio";

    // 图片目录
    public static final String CALL_PICTURE_FILE_PATH = CALL_MEDIA_FILE_PATH + "/picture";

    //求电剪切音频
    public static final String SEEK_AUDIO_PATH = SEEK_FILE_PATH + "/audio/";

}
